home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / netinfo.515 < prev    next >
Text File  |  1992-02-06  |  5KB  |  247 lines

  1. {\rtf0\ansi{\fonttbl\f2\fnil Times-Roman;\f0\fmodern Courier;}
  2. \paperw11040
  3. \paperh7060
  4. \margl120
  5. \margr120
  6. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f2\b0\i0\ul0\fs28 netinfo niload -d corrupt database cannot find parent server\
  7. \
  8. Q.  When I reboot after doing a\
  9. \
  10.  
  11. \b      
  12. \f0\b0\fs24 niload -d hosts / < /etc/hosts
  13. \f2\fs28 \
  14.              \
  15. why does the NetInfo server machine display the following message? \
  16. \
  17.     
  18. \f0\fs24 cannot find parent NetInfo server, still looking...\
  19.     Press 'c' to continue boot without parent server.\
  20.     See your system administrator if you need help.\
  21.  
  22. \f2\fs28 \
  23. A.  During the 
  24. \b niload -d
  25. \b0  the entry for the local host in the NetInfo root domain got deleted, or perhaps a new entry got created without the 
  26. \b serves
  27. \b0  property.  In either case, without the 
  28. \b serves
  29. \b0  property, a machine can't find its parent server.\
  30. \
  31.  
  32. \b niload  -d
  33. \b0  deletes entries that are in the directory but not in the input (which in this case is \
  34. /etc/hosts).  Thus either the machine's entry will be completely lost (if the corresponding entry is not in /etc/hosts), or else the machine's entry will be overwritten by the new entry, deleting the 
  35. \b serves
  36. \b0  property in the process.  (
  37. \b niload
  38. \b0  is not capable of adding properties other than the standard Unix ones, which are 
  39. \b  ip_address
  40. \b0  and 
  41. \b name
  42. \b0  in this case.)\
  43. \
  44. There are two different procedures for fixing the problem, depending on whether the 
  45. \b serves
  46. \b0  property got corrupted on a NetInfo 
  47. \b client
  48. \b0  or on a 
  49. \b server.\
  50. \
  51. 1. IF THE MACHINE IS A CLIENT:\
  52.  
  53. \b0 \
  54. The procedure to fix it is easier in this case, since the root domain can be accessed through NetInfoManager.  Run NetInfoManager on the NetInfo server and add the missing 
  55. \b machines
  56. \b0  subdirectory or the missing 
  57. \b serves
  58. \b0  property (of the form 
  59. \b\i hostname
  60. \i0 /local
  61. \b0 ) to the root domain:\
  62. \
  63.  • Launch NetInfoManager.\
  64.  • Open the / (root) domain.\
  65.  • Edit Properties for 
  66. \i hostname
  67. \i0 , where 
  68. \i hostname
  69. \i0  is the name of your client (see following section if there is no entry for 
  70. \i hostname)
  71. \i0 .\
  72.  • Make a 
  73. \b serves
  74. \b0  property.\
  75.  • Change newValue of the 
  76. \b serves
  77. \b0  property to 
  78. \i hostname
  79. \i0 /local.\
  80.  • Reboot 
  81. \i hostname
  82. \i0 .\
  83.  \
  84.  If there is no 
  85. \b machines
  86. \b0  entry for 
  87. \i hostname
  88. \i0 , create one:\
  89.  \
  90.  • Create a new 
  91. \b machines
  92. \b0  subdirectory for 
  93. \i hostname
  94. \i0 .\
  95.  • Change the 
  96. \b machines
  97. \b0  subdirectory from  newValue to 
  98. \i hostname
  99. \i0 .\
  100.  • Edit Properties for 
  101. \i hostname
  102. \i0 .\
  103.  • Add an 
  104. \b ip_address
  105. \b0  property with a value of the form 
  106. \i xxx.yy.zzz.aaa
  107. \i0 , replacing 
  108. \i xxx.yy.zzz.aaa 
  109. \i0 with the correct ip-address.\
  110.  • Add a 
  111. \b serves
  112. \b0  property with the value 
  113. \i hostname
  114. \i0 /local\
  115.  • Reboot 
  116. \i hostname
  117. \i0 .\
  118. \
  119. \
  120.  
  121. \b 2. IF THE MACHINE IS A SERVER:\
  122.  
  123. \b0 \
  124. If the machine is the server, the procedure is a little more involved:\
  125. \
  126. • Boot the machine, and when you get the above message, type "c" to continue.  Once the machine is up, log in.  Open a Shell or Terminal and 
  127. \b su
  128. \b0  to root if you are not already logged in as root. \
  129.  \
  130. • Run 
  131. \b niutil
  132. \b0  to see what has happened to the machine 
  133. \i hostname
  134. \i0 .  Replace 
  135. \i hostname
  136. \i0  with the name of your machine:\
  137.  \
  138.  
  139. \f0\fs24  #niutil -read -t localhost/network /machines/
  140. \i hostname
  141. \i0 \
  142.  
  143. \f2\fs28  \
  144.  You might get an output that looks like this: \
  145.  \
  146.  
  147. \f0\fs24 name: 
  148. \i hostname 
  149. \i0 \
  150. ip_address: 192.72.11.1 \
  151. en_address: 00:00:0f:00:3:3 \
  152. bootfile: mach \
  153. bootparams: private=
  154. \i server
  155. \i0 :/clients/
  156. \i hostname
  157. \i0  root=
  158. \i server
  159. \i0 :/ \
  160. \
  161.  
  162. \f2\fs28 Note the missing 
  163. \b serves
  164. \b0  property!  If your output looks like the above, add the missing 
  165. \b serves
  166. \b0  property by entering the following command:\
  167. \
  168.  
  169. \f0\fs24     #niutil -createprop -t localhost/network /machines/
  170. \i hostname 
  171. \i0 serves 
  172. \i hostname
  173. \i0 /local ./network\
  174.  
  175. \f2\fs28 \
  176. and then reboot the machine.\
  177. \
  178. If instead of the above output, you got the following output:\
  179. \
  180.  
  181. \f0\fs24 niutil: can't open localhost/network:/machines/
  182. \i hostname
  183. \i0 \
  184. \
  185.  
  186. \f2\fs28 then the 
  187. \b machines
  188. \b0  subdirectory for your machine 
  189. \i hostname 
  190. \i0 got blown away.  To recreate this directory do the following:\
  191. \
  192. •  Create a host directory for
  193. \i  hostname
  194. \i0 :\
  195. \
  196.  
  197. \f0\fs24     #niutil -create -t localhost/network /machines/
  198. \i hostname
  199. \i0 \
  200.  \
  201.  
  202. \f2\fs28 •  Add the correct 
  203. \b serves
  204. \b0  property for 
  205. \i hostname
  206. \i0 :\
  207. \
  208.  
  209. \f0\fs24     #niutil -createprop -t localhost/network /machines/
  210. \i hostname 
  211. \i0 serves 
  212. \i hostname
  213. \i0 /local ./network\
  214.  
  215. \f2\fs28 \
  216. •  Add the 
  217. \b ip_address
  218. \b0  property for 
  219. \i hostname
  220. \i0 , replacing 
  221. \i xxx.yy.zzz.aaa 
  222. \i0 with the correct IP address:\
  223. \
  224.  
  225. \f0\fs24     #niutil -createprop -t localhost/network /machines/
  226. \i hostname 
  227. \i0 ip_address 
  228. \i xxx.yy.zzz.aaa
  229. \i0 \
  230. \
  231.  
  232. \f2\fs28 • After these changes, reboot the machine:\
  233. \
  234.  
  235. \f0\fs24     #reboot\
  236. \
  237.  
  238. \f2\fs28 QA515\
  239. \
  240.  
  241. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320 Valid for 1.0\
  242. Valid for 2.0\
  243.  
  244. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  245.  
  246.  
  247.